I manage a backup environment wit > 100 vm's. We programmatically retrieve restore points for a given time frame. For the majority (95%) of the vm's it works fine. For some other, it does not work.
This is the call I do (after being authenticated). For this VM Q01SQL001 it fails: For other ones, e.g. LUBCTX001, it works fine.
This is the request:
Code: Select all
http://q02mon002.q.lan:9399/api/query?type=VmRestorePoint&format=entities&filter=VmDisplayName=="Q01SQL001";CreationTime>="2016-09-01 12:00:00";CreationTime<"2016-09-02 12:00:00"
Code: Select all
<?xml version="1.0" encoding="utf-8"?><Error StatusCode="500" Message="Value was either too large or too small for a UInt64." xmlns="http://www.veeam.com/ent/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><FirstChanceExceptionMessage>Value was either too large or too small for a UInt64.</FirstChanceExceptionMessage><StackTrace>Veeam.Backup.Interaction.RestAPI.CRestAPICommunicationException: Value was either too large or too small for a UInt64. ---> System.OverflowException: Value was either too large or too small for a UInt64.
at System.Number.ParseUInt64(String value, NumberStyles options, NumberFormatInfo numfmt)
at Veeam.Backup.Common.CXmlHelper2.FindAttrAsUInt64(XmlNode node, String attrName, Nullable`1 defValue)
at Veeam.Backup.Enterprise.RestAPIService.CVmRestorePointEntityDataReader.MakeSqlDatabaseInfo(XmlNode dbNode)
at Veeam.Backup.Enterprise.RestAPIService.CVmRestorePointEntityDataReader.MakeSqlInfo(String auxDataXml)
at Veeam.Backup.Enterprise.RestAPIService.CVmRestorePointEntityDataReader.RowToVmRestorePointEntity(IDataRecord dataRecord)
at Veeam.Backup.Enterprise.RestAPIService.CVmRestorePointEntityDataReader.Veeam.Backup.Enterprise.RestAPIService.IQueryResultDataReader<Veeam.Backup.Interaction.RestAPI.Resources.VmRestorePointEntityType,Veeam.Backup.Interaction.RestAPI.CVmRestorePointsQueryField>.ReadAll(IDataReader reader)
at Veeam.Backup.Enterprise.RestAPIService.CEntitySqlQueryExecutor`2.Exec()
at Veeam.Backup.Enterprise.RestAPIService.CRestApiVmRestorePointsScope.QueryVmRestorePoints(CRestQueryParams queryParams)
at Veeam.Backup.Enterprise.RestAPIService.CRestApiQueryScope.Query(String queryTypeStr, String formatStr, String fieldsStr, String sortAscStr, String sortDescStr, String pageSizeStr, String pageNumStr, String filterStr)
at Veeam.Backup.Enterprise.RestAPIService.CEnterpriseRestServiceStub.Query(String type, String format, String fields, String sortAsc, String sortDesc, String pageSize, String pageNum, String filter)
at SyncInvokeQuery(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
--- End of inner exception stack trace ---</StackTrace></Error>
Thanks,
Luc