Hi there Community,
I have the next problem:
I'm trying to scheduled a custom code to run every week. Its easy to make the scheduling and thats nice.
I've download the last code sample for custom codes, when I modify the code to run a search over a document inside a collection, I get some errors, before I tried findAllDocuments and gave me error too.
Here is the code:
String dbName = "TESTDB";
String collectionName = "InfoCollection";
String docID = "53864b14e4b0b33395a6a7cf";
logger.debug("Find Document by id in ["+dbName+"]["+collectionName+"] with ["+docID+"] NOW!", moduleName);
Storage storage = storageService.findDocumentById(dbName,collectionName,docID);
logger.debug("dbName is " + storage.getDbName(), moduleName);
//other code never reached here
int appErrorCode = exception.getAppErrorCode();
int httpErrorCode = exception.getHttpErrorCode();
logger.debug("Error finding document with id appCode["+appErrorCode+"] httpCode["+httpErrorCode+"]", moduleName);
logger.debug("Cant find document with id ["+docID+"]", moduleName);
In the log service I've got the next messages:
"Error finding document with id appCode httpCode"
"Cant find document with id [53864b14e4b0b33395a6a7cf]"
I've triple checked the doc id, and as I said before even findAllDocuments fails.
Any idea where I could search for the answer?
Hope you can help me.
Thanks in advance.