OK, it worked. Since both resources were empty on the datahub, the client.delete() call created an unhandled exception that broke the script. Quick fix was to comment out the delete calls. Marian