<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Nil fileUrlsToBatchResultEntries response when setting template name and value to DBFILESCommitI in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Nil-fileUrlsToBatchResultEntries-response-when-setting-template/m-p/351690#M20128</link>
    <description>&lt;P&gt;If the file does get uploaded,&amp;nbsp;fileUrlsToBatchResultEntries shouldn't be nil, so we'll be happy to help look into it. Is this is actual code you're running though, or was it edited for the post? I ask because it looks like you may be missing some curly brackets. Also, it looks like you're not using the&amp;nbsp;propertyGroupArray anyway.&lt;/P&gt;
&lt;P&gt;To begin debugging this, it may be helpful to start by just printing out all of the values given to the response block, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;NSLog(@"fileUrlsToBatchResultEntries: %@", fileUrlsToBatchResultEntries);
NSLog(@"finishBatchRouteError: %@", finishBatchRouteError);
NSLog(@"finishBatchRequestError: %@", finishBatchRequestError);
NSLog(@"fileUrlsToRequestErrors: %@", fileUrlsToRequestErrors);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2019 14:25:59 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-06-24T14:25:59Z</dc:date>
    <item>
      <title>Nil fileUrlsToBatchResultEntries response when setting template name and value to DBFILESCommitInfo</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Nil-fileUrlsToBatchResultEntries-response-when-setting-template/m-p/351536#M20121</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello there.&lt;/P&gt;
&lt;P&gt;I am trying to set a property custom property to a file that I am uploading to User's folder with the name 'name' and value 'value', with teamplate&amp;nbsp;'/templateId'. When I add the following I get a nil fileUrlsToBatchResultEntries and as consequence nil result, however the file is indeed uploaded to the applications' folder.&lt;/P&gt;
&lt;PRE&gt;        NSMutableDictionary&amp;lt;NSURL *, DBFILESCommitInfo *&amp;gt; *uploadFilesUrlsToCommitInfo = [NSMutableDictionary new];
        NSDictionary *attributes = [[NSFileManager defaultManager] attributesOfItemAtPath:localFilePath error:nil];
        NSArray *propertyGroupArray = [NSArray arrayWithObjects:[[DBFILEPROPERTIESPropertyGroup alloc] initWithTemplateId:@"/templateId" fields:[NSArray arrayWithObjects:[[DBFILEPROPERTIESPropertyField alloc] initWithName:@"name" value:@"value"], nil]], nil];
        DBFILESCommitInfoWithProperties *commitInfo = [[DBFILESCommitInfoWithProperties alloc] initWithPath:cloudFilePath mode:[[DBFILESWriteMode alloc] initWithOverwrite] autorename:[NSNumber numberWithBool:NO] clientModified:attributes[NSFileCreationDate] mute:[NSNumber numberWithBool:YES] propertyGroups:nil strictConflict:[NSNumber numberWithBool:YES]]
        [uploadFilesUrlsToCommitInfo setObject:commitInfo forKey:[NSURL fileURLWithPath:localFilePath]];
        [client.filesRoutes batchUploadFiles:uploadFilesUrlsToCommitInfo queue:nil progressBlock: {} responseBlock:^(NSDictionary&amp;lt;NSURL *,DBFILESUploadSessionFinishBatchResultEntry *&amp;gt; *fileUrlsToBatchResultEntries, DBASYNCPollError *finishBatchRouteError, DBRequestError *finishBatchRequestError, NSDictionary&amp;lt;NSURL *,DBRequestError *&amp;gt; *fileUrlsToRequestErrors){         
                DBFILESMetadata *dbFilesMetadata = nil;
                DBFILESUploadSessionFinishBatchResultEntry *result = fileUrlsToBatchResultEntries[[NSURL fileURLWithPath:localFilePath]];
                if (result) {
                    if (result.tag == DBFILESUploadSessionFinishBatchResultEntrySuccess)
                        dbFilesMetadata = result.success;
                    else
                        aError = [self errorFromRouteError:finishBatchRouteError requestError:finishBatchRequestError];
                } else
                    aError = [self errorFromRouteError:finishBatchRouteError requestError:finishBatchRequestError];
                success = (dbFilesMetadata != nil);
        }];&lt;/PRE&gt;
&lt;P&gt;What am I doing wrong when trying to set a property name and value to the file that I want to upload, please?&lt;/P&gt;
&lt;P&gt;Looking forward to your response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 09:27:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Nil-fileUrlsToBatchResultEntries-response-when-setting-template/m-p/351536#M20121</guid>
      <dc:creator>mms</dc:creator>
      <dc:date>2019-07-16T09:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Nil fileUrlsToBatchResultEntries response when setting template name and value to DBFILESCommitI</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Nil-fileUrlsToBatchResultEntries-response-when-setting-template/m-p/351690#M20128</link>
      <description>&lt;P&gt;If the file does get uploaded,&amp;nbsp;fileUrlsToBatchResultEntries shouldn't be nil, so we'll be happy to help look into it. Is this is actual code you're running though, or was it edited for the post? I ask because it looks like you may be missing some curly brackets. Also, it looks like you're not using the&amp;nbsp;propertyGroupArray anyway.&lt;/P&gt;
&lt;P&gt;To begin debugging this, it may be helpful to start by just printing out all of the values given to the response block, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;NSLog(@"fileUrlsToBatchResultEntries: %@", fileUrlsToBatchResultEntries);
NSLog(@"finishBatchRouteError: %@", finishBatchRouteError);
NSLog(@"finishBatchRequestError: %@", finishBatchRequestError);
NSLog(@"fileUrlsToRequestErrors: %@", fileUrlsToRequestErrors);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 14:25:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Nil-fileUrlsToBatchResultEntries-response-when-setting-template/m-p/351690#M20128</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-06-24T14:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Nil fileUrlsToBatchResultEntries response when setting template name and value to DBFILESCommitI</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Nil-fileUrlsToBatchResultEntries-response-when-setting-template/m-p/351753#M20130</link>
      <description>&lt;P&gt;I found the solution following the source:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.dropboxforum.com/t5/API-Support-Feedback/File-properties/td-p/288255" target="_blank"&gt;https://www.dropboxforum.com/t5/API-Support-Feedback/File-properties/td-p/288255&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem was that I was trying to set the property while having a folder access only.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 18:03:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Nil-fileUrlsToBatchResultEntries-response-when-setting-template/m-p/351753#M20130</guid>
      <dc:creator>mms</dc:creator>
      <dc:date>2019-06-24T18:03:30Z</dc:date>
    </item>
  </channel>
</rss>

