Hi, Adrian:

The root cause is a bug in the REST API.

In 8.0-1, REST API clients (including both the Node.js API and Java API) cannot 
set the system time for more than one document in a bulk document request.

It looks like the fix will be in 8.0-2


Thanks for reporting the issue,


Erik Hennum

________________________________________
From: [email protected] 
[[email protected]] on behalf of Adrian Creegan 
[[email protected]]
Sent: Thursday, April 02, 2015 5:16 AM
To: [email protected]
Cc: [email protected]
Subject: [MarkLogic Dev General] Inserting multiple documents into temporal     
question with system time - TEMPORAL-SYSTEM-MUSTGETAFTERSET error

Hello,

I’m writing in nodejs and need to insert multiple documents into a temporal 
collection with specified systemTime.

Everything works fine when I do the following:
client.documents.write({
            documents: document,
            temporalCollection: collection,
            systemTime: systemTime
        }).result(
            function (docs) {
                ResultReceived();
            },
            function (err) {
                ResultReceived(err);
            }
        );

When I try to insert two documents with the same structure I get:
"TEMPORAL-SYSTIME-MUSTGETAFTERSET: 
temporal:statement-set-system-time(xs:dateTime("2008-10-07T20:00:00Z")) -- 
Cannot get system time before it is set . See the MarkLogic server error log 
for further detail.”
client.documents.write({
            documents: [document1, document2],
            temporalCollection: collection,
            systemTime: systemTime
        }).result(
            function (docs) {
                ResultReceived();
            },
            function (err) {
                ResultReceived(err);
            }
        );

Could you point me at what I’m doing wrong?

Thanks!





_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to