0 Replies
      Latest reply on Jun 9, 2019 2:46 AM by dgwilson
      dgwilson Level 1 Level 1 (0 points)

        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:  <PFUbiquitySetupAssistant: 0x103219d80>
        The baseline file exists, but could not be read: <PFUbiquityBaseline: 0x283664820>(0)
        permanentLocation: <PFUbiquityLocation: 0x282331f80>: /var/mobile/Library/Mobile Documents/ZNVB52L2P6~nz~co~catch22~TrafficCamNZ/logs/.baseline/TrafficCamNZ_DataStore/sTa6kCt5nlKIFcjB5qns0kF1SarXlj0E2pT2LcCFQkA=/baseline.zip
        safeLocation: <PFUbiquityLocation: 0x282332040>: /var/mobile/Library/Mobile Documents/ZNVB52L2P6~nz~co~catch22~TrafficCamNZ/logs/.baseline/TrafficCamNZ_DataStore/sTa6kCt5nlKIFcjB5qns0kF1SarXlj0E2pT2LcCFQkA=/mobile~FD276518-A885-4A0D-9288-6B6D90EE31BE.nosync
        currentLocation: <PFUbiquityLocation: 0x282331f80>: /var/mobile/Library/Mobile Documents/ZNVB52L2P6~nz~co~catch22~TrafficCamNZ/logs/.baseline/TrafficCamNZ_DataStore/sTa6kCt5nlKIFcjB5qns0kF1SarXlj0E2pT2LcCFQkA=/baseline.zip
        
        
        storeName: TrafficCamNZ_DataStore
        modelVersionHash: sTa6kCt5nlKIFcjB5qns0kF1SarXlj0E2pT2LcCFQkA=
        baselineArchiveLocation: <PFUbiquityLocation: 0x282331f80>: /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