Why macros can't save some ods-file

My macros reads some ods-file, changes values in some cells and then tries to save it:

oDocConst.storeAsURL(UrlConst, Dummy())

and then gets such a message:

BASIC runtime error.
An exception occurred
Type: com.sun.star.task.ErrorCodeIOException
Message: SfxBaseModel::impl_store <file:///C:\ddd\Rename\LineConstNew.ods> failed: 0x507(Error Area:Io Class:Access Code:7).

What does it mean? There is no problem while macros saves another ods-file.

Path for save must be in format URL, look:

https://wiki.documentfoundation.org/Macros/Basic/Documents#Save_document

Thanks! It works.