having the same error here
were you able resolve this?
PropertyNotLoaded Error Persisting after calling load and context.sync
I am creating a Word add-in using the javascript API. I am hitting a 'PropertyNotLoaded' error when trying to access items within my rangeCollection. As far as I can tell, I have loaded items/text and have called await context.sync() before I use the item values.
This is the specific error I see:
Error: PropertyNotLoaded: The property 'items' is not available. Before reading the property's value, call the load method on the containing object and call "context.sync()" on the associated request context.
taskpane.js:412 Debug info: {"code":"PropertyNotLoaded","message":"The property 'items' is not available. Before reading the property's value, call the load method on the containing object and call \"context.sync()\" on the associated request context.","errorLocation":"RangeCollection.items"}
I'd appreciate any guidance on resolving this issue.
1 answer
Sort by: Most helpful
-
Peter Kipp 0 Reputation points
2025-01-30T20:27:39.16+00:00