• Kamil Szyc
  • NEWBIE
  • 10 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies
When I create a queue (e.g. called 'Sample') in a scratch org and then try to sync my local project by running:
sfdx force:source:pull
I am getting error:
ERROR running force:source:pull:  Entity of type 'Group' named 'Sample' cannot be found.
Am I missing something?

 
Hi,

I wanted to push External Object with Auth Providers to my scratch org. It's a Files Connect connection to SharePoint Online. The SFDX CLI returns error:
This org does not have the appropriate permissions to use the 'ContentHubSharepointOffice365' data provider
Is it possible for a scratch org to have this sort of permissions? If yes, how can I set them up?

Thanks,
Kamil
When running 
 
sfdx force:org:create -s -f config/project-scratch-def.json -a GeoAppScratch

I am getting:
ERROR running force:org:create:  Socket timeout occurred while listening for results.

Try this:
You may consider increasing the --wait parameter value to increase timeout.
I get the error a few seconds after I run the command and changing the wait parameter does not help. Could the fact that I am behind proxy be the issue? I have set it up as per following:  https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli_firewall.htm? search_text=proxy and I am able to use such commands as sfdx update or sfdx:force:org:open etc.
When running 
 
sfdx force:org:create -s -f config/project-scratch-def.json -a GeoAppScratch

I am getting:
ERROR running force:org:create:  Socket timeout occurred while listening for results.

Try this:
You may consider increasing the --wait parameter value to increase timeout.
I get the error a few seconds after I run the command and changing the wait parameter does not help. Could the fact that I am behind proxy be the issue? I have set it up as per following:  https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli_firewall.htm? search_text=proxy and I am able to use such commands as sfdx update or sfdx:force:org:open etc.
When running 
 
sfdx force:org:create -s -f config/project-scratch-def.json -a GeoAppScratch

I am getting:
ERROR running force:org:create:  Socket timeout occurred while listening for results.

Try this:
You may consider increasing the --wait parameter value to increase timeout.
I get the error a few seconds after I run the command and changing the wait parameter does not help. Could the fact that I am behind proxy be the issue? I have set it up as per following:  https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli_firewall.htm? search_text=proxy and I am able to use such commands as sfdx update or sfdx:force:org:open etc.

Hi guys, 
Maybe this question asked by some guy but I don't find the answer for this yet, so I would like to ask it again with my case.

I have meet a problem with integratiion jquery file upload into visualforce page. I try to use jquery-file-upload to upload files to chatter files. 

Something like this guy did (http://vimeo.com/59395045) but not hack, not using sfc/servelet.shepherd, only using 'services/data/v29.0/chatter/users/me/files' to upload for the files.

I also get a reference from this link
https://developer.salesforce.com/forums/ForumsMain?id=906F000000099QQIAY

But I don't like his suggestion. 

I tried with jquery file upload and I get the error 401-unauthorized when uploading. So, I appreciate any help to make this one work. Thank you.

This is the code I used for upload:

$(function () {
        'use strict';
        // Enable iframe cross-domain access via redirect option:
        $('#fileupload').fileupload(
            'option',
            'redirect',
            window.location.href.replace(
                /\/[^\/]*$/,
                '/cors/result.html?%s'
            )
        );
    
        if (window.location.hostname === 'blueimp.github.io') {
            // Demo settings:
            $('#fileupload').fileupload('option', {
                url: '//jquery-file-upload.appspot.com/',
                // Enable image resizing, except for Android and Opera,
                // which actually support image resizing, but fail to
                // send Blob objects via XHR requests:
                disableImageResize: /Android(?!.*Chrome)|Opera/
                    .test(window.navigator.userAgent),
                maxFileSize: 5000000,
                acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i
            });
            // Upload server status check for browsers with CORS support:
            if ($.support.cors) {
                $.ajax({
                    url: '//jquery-file-upload.appspot.com/',
                    type: 'HEAD'
                }).fail(function () {
                    $('<div class="alert alert-danger"/>')
                        .text('Upload server currently unavailable - ' +
                                new Date())
                        .appendTo('#fileupload');
                });
            }
        } else {
            // Load existing files:
            $('#fileupload').addClass('fileupload-processing');
            $.ajax({
                // Uncomment the following to send cross-domain cookies:
                //xhrFields: {withCredentials: true},
                
                url: $('#fileupload').fileupload('option', 'url'),
                beforeSend: function(xhr) {
                   xhr.setRequestHeader('Authorization', 'Bearer {!$Api.session_ID}');
                },
                dataType: 'json',
                context: $('#fileupload')[0]
            }).always(function () {
                $(this).removeClass('fileupload-processing');
            }).done(function (result) {
                $(this).fileupload('option', 'done')
                    .call(this, $.Event('done'), {result: result});
            });
        }
       
        // Initialize the jQuery File Upload widget:
        $('#fileupload').fileupload({
            // Uncomment the following to send cross-domain cookies:
            //xhrFields: {withCredentials: true},
            url:'/services/data/v29.0/chatter/users/me/files',
            uploadTemplateId: 'template-upload',
            downloadTemplateId: 'template-download'
        });

    });