Skip to content

DateTimeFromFileTimeUTC Function error (attribute Type) #96

@juancarloscanto

Description

@juancarloscanto

I am try to use the DateTimeFromFileTimeUTC Function, just as indicated in the example: DateTimeFromFileTimeUTC([//Target/AccountExpires]) to conver AccountExpires from AD to MIM format (to configure notification MPR), but the workflow give this error:
Exception occurred while attempting to 'resolve' function 'System.ArgumentOutOfRangeException: Not a valid Win32 FileTime. Parameter name: fileTime at System.DateTime.FromFileTimeUtc(Int64 fileTime) at MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Common.ExpressionFunction.DateTimeFromFileTimeUtc() at MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Common.ExpressionFunction.Run()': 'DateTimeFromFileTimeUTC('9223372036854775807')'.
//Target/AccountName is an Integer Attribute and destination is a DateTime Attribute.

Am I doing something wrong?

I also need to convert pwdLastSet y LastLogonTimeStamp, could I use the same function?

Thanks in advance
Best Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions