Questions tagged [marklogic-9]

Indicates questions specific to MarkLogic 9; use with the MarkLogic tag but not in place of.

Apply to questions that are specific to MarkLogic 9. This tag should be used in addition to the MarkLogic tag, which has many more followers. (If you have other other tags and have to choose between this one and MarkLogic, use the MarkLogic tag instead.)

472 questions
2
votes
1 answer

couldn't build app using DMSDK (data movement SDK) with maven pom.xml

I'm trying to use Marklogic DMSDK (Data Movement SDK) in java because I want to load content with dynamic paramters. I'm using Marklogic 9.0-8. I kind of followed the sample provided by https://developer.marklogic.com/learn/data-movement-sdk I…
Helen
  • 171
  • 16
2
votes
2 answers

MarkLogic - Passing variable to XML using Javascript

I am using javascript to read an XML, and create an envelope before storing in database. While creating headers, I need to populate the element "created-by" with the value of current user. let user = xdmp.getCurrentUser() I tried something like…
Bhanu
  • 427
  • 2
  • 8
2
votes
2 answers

Create multiple MarkLogic Schedule Task for same module through ml-gradle

I am trying to create multiple instance of application on same marklogic environment. I can able to create all the configurations(users,roles,databases,forests,app servers...) but could not able to schedule individual tasks for separate database…
mpuram
  • 149
  • 9
2
votes
2 answers

UTC offset for provided region in MarkLogic

Is there a way to get UTC offset for a given region natively in MarkLogic? e.g. if region is "America/New_York" then offset should be -5:00 (during Standard Time) or -4:00 (during Daylight Saving Time) If this can't be achieved with built-in ML…
2
votes
1 answer

Failed to Delete Multiple Collections.

I am using following code to delete Test1 and Test2 collections but i am getting FailedRequestException. Please Guide me to resolve this issue. I am getting this issue only when there are more than one collection. QueryManager queryManager =…
DevNinja
  • 1,459
  • 7
  • 10
2
votes
1 answer

How can I avoid error trying to get the developer license?

When clicking on 'get developer license' from the admin interface I get the following error. How can I fix it? 500 Internal Server Error XDMP-CAST: (err:FORG0001) xs:integer(fn:substring-before($version, ".")) -- Invalid cast: "" cast as…
Alexandra
  • 23
  • 3
2
votes
1 answer

PutMarklogic processor in Nifi

I am planning to use Nifi marklogic processor to ingest documents from my s3 bucket . Is putMarklogic underneath using MLCP ? Can it take all the MLCP options for eg: aggregate_record_namespace or transform_module or transform_namespace or…
Ravi
  • 1,179
  • 6
  • 13
2
votes
1 answer

issue on updating roxy for Marklogic 9.0-5

I am getting error while trying to run "ml upgrade --branch=master" in the command line for upgrading roxy 1.7.3 to get latest version of roxy. ERROR: No such file or directory @ rb_sysopen - C:/Users/RKAR/AppData/Lo …
RKar
  • 31
  • 2
2
votes
3 answers

How to know the distinct namespaces in a database in MarkLogic?

I have a database in MarkLogic server. The database has many collections. Some of these collections have a namespace and some have different namespace. What is the query to know the distinct namespaces? My goal is to build a search application that…
2
votes
1 answer

Retrieving document deleted by pre-commit trigger within transaction

We have a pre-commit trigger on document delete event, within an XQuery module associated with trigger we can't retrieve the document contents. We get document URI but when we do fn:doc($uri) it doesn't return document content. Is there way to get…
Amit Gope
  • 120
  • 1
  • 10
2
votes
2 answers

How can I ensure uniqueness of element values?

We're using MarkLogic Server to store some operational application data and one basic requirement often is that some element value is unique across all documents in the database (e.g. an email address that users should be allowed to change, but that…
2
votes
1 answer

Marklogic 9 rebalancer not working with assigned query policy

I am trying to tier Marklogic 9 via query assignment policy. I created 2 tiers (as partitions) in "Documents" database with partition names as: Part1 , partition number is 1, Default partition (no assigned query) Part2 , partition number is 2 In…
cnon
  • 21
  • 2
2
votes
1 answer

MarkLogic TDE xpath on multiple repeating fields

I need to create template using TDE. Eventually i want to be able to view data in using my view. The problem i see is because of multiple repeating elements in my xml. Can anyone please help me on how to create such a template. Here is the sample of…
2
votes
1 answer

Search Xpath with its value in XML Documents and Get Document URI From Marklogic

I have XML stored in MarkLogic as mentioned below datatypename1 datatype1 code1 value1
DevNinja
  • 1,459
  • 7
  • 10
2
votes
0 answers

Search Multiple Values associated with Single XML Element(Key) using MarkLogic Java API

I have Multiple Documents Stored in Marklogic as Mentioned datatypename1 datatype1 code1
DevNinja
  • 1,459
  • 7
  • 10