value for key 'values' was of unexpected class 'NSArray'

Hi team.


I trying to track down an error... intercept/fix. I suspect I have a corruption (from somewhere) in my sqllite database in icloud... I have not been able to figure out how to intercept the error.


For context there is only one table of data. It could be my icloud data that is corrupt, although how it would have got corrupt would also be a mystery.


Any advice on how I can track down this error?


2019-06-09 20:57:04.000240+1200 TrafficCamNZ[12172:4381588] -[PFUbiquityBaseline loadFileFromLocation:error:](463): CoreData: Ubiquity:  Failed to decode model from archive: Error Domain=NSCocoaErrorDomain Code=4864 "value for key 'values' was of unexpected class 'NSArray'. Allowed classes are '{(
NSDictionary,
NSString,
NSFetchRequest
)}'." UserInfo={NSDebugDescription=value for key 'values' was of unexpected class 'NSArray'. Allowed classes are '{(
NSDictionary,
NSString,
NSFetchRequest
)}'.}
2019-06-09 20:57:04.000463+1200 TrafficCamNZ[12172:4381588] -[PFUbiquitySetupAssistant initializeBaselineForStore:error:](1819): CoreData: Ubiquity:  
The baseline file exists, but could not be read: (0)
permanentLocation: : /var/mobile/Library/Mobile Documents/ZNVB52L2P6~nz~co~catch22~TrafficCamNZ/logs/.baseline/TrafficCamNZ_DataStore/sTa6kCt5nlKIFcjB5qns0kF1SarXlj0E2pT2LcCFQkA=/baseline.zip
safeLocation: : /var/mobile/Library/Mobile Documents/ZNVB52L2P6~nz~co~catch22~TrafficCamNZ/logs/.baseline/TrafficCamNZ_DataStore/sTa6kCt5nlKIFcjB5qns0kF1SarXlj0E2pT2LcCFQkA=/mobile~FD276518-A885-4A0D-9288-6B6D90EE31BE.nosync
currentLocation: : /var/mobile/Library/Mobile Documents/ZNVB52L2P6~nz~co~catch22~TrafficCamNZ/logs/.baseline/TrafficCamNZ_DataStore/sTa6kCt5nlKIFcjB5qns0kF1SarXlj0E2pT2LcCFQkA=/baseline.zip


storeName: TrafficCamNZ_DataStore
modelVersionHash: sTa6kCt5nlKIFcjB5qns0kF1SarXlj0E2pT2LcCFQkA=
baselineArchiveLocation: : /var/mobile/Library/Mobile Documents/ZNVB52L2P6~nz~co~catch22~TrafficCamNZ/logs/.baseline/TrafficCamNZ_DataStore/sTa6kCt5nlKIFcjB5qns0kF1SarXlj0E2pT2LcCFQkA=/baseline.zip


Error: Error Domain=NSCocoaErrorDomain Code=4864 "value for key 'values' was of unexpected class 'NSArray'. Allowed classes are '{(
NSDictionary,
NSString,
NSFetchRequest
)}'." UserInfo={NSDebugDescription=value for key 'values' was of unexpected class 'NSArray'. Allowed classes are '{(
NSDictionary,
NSString,
NSFetchRequest
)}'.}
userInfo: {
NSDebugDescription = "value for key 'values' was of unexpected class 'NSArray'. Allowed classes are '{(\n    NSDictionary,\n    NSString,\n    NSFetchRequest\n)}'.";
}

- David