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

Reply via email to