Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-2 as a timestamp for some items #275

Closed
eduard93 opened this issue Aug 22, 2023 · 3 comments · Fixed by #290
Closed

-2 as a timestamp for some items #275

eduard93 opened this issue Aug 22, 2023 · 3 comments · Fixed by #290
Assignees
Labels
bug Something isn't working

Comments

@eduard93
Copy link

eduard93 commented Aug 22, 2023

When trying to do a force import I'm getting an error:

Error invoking Source Control:
ERROR #5002: ObjectScript error: <VALUE OUT OF RANGE>zGetTempFileAndRoutineTS+7^SourceControl.Git.Utils.1

This is caused by: GetTempFileAndRoutineTS method, line set routineTSH = $zdatetime(routineTSH,3)

routineTSH is -2 as returned by RoutineTSH, which gets it directly from the global:

IRIS:EDUARD>zw ^SYS("SourceControl","Git","TSH")
^SYS("SourceControl","Git","TSH","Ens.Config.DefaultSettings.esd")=-2
^SYS("SourceControl","Git","TSH","EnsExportNotes.EnsExportProduction_2021-03-25 16-21-00_981-4.ptd")=-2

Other items in a "SourceControl","Git","TSH" subscript have normal $h values, i.e. 65579,34208.94009339.

I have added a temporary workaround to RoutineTSH:

#dim tsh = $case(type,"csp":"",:$get(@..#Storage@("TSH", ..NormalizeExtension(InternalName))))
set:tsh=-2 tsh=0

But I'm not sure where exactly -2 is coming from.

@isc-tleavitt
Copy link
Collaborator

Today I learned that %File:GetFileDateModified might return an OS-level error code instead of a timestamp! In this case, -2 means:

USER>w $zu(209,2)
<2> No such file or directory

(On Windows, it'd be -3.)

I'll file a Jira to get the documentation fixed. In the meanwhile, are your mappings configured correctly?

@eduard93
Copy link
Author

eduard93 commented Sep 5, 2023

I think mappings are configured correctly, but there are no mappings for esd, ptd.

@isc-tleavitt isc-tleavitt added the bug Something isn't working label Sep 7, 2023
@isc-tleavitt
Copy link
Collaborator

@isc-rsaptars let's just add the same workaround for this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants