title: Invalid Path error while inserting job from google cloud storage to google bigquery
body: <p>I am trying to insert a job through HTTP Post request, but i am getting Invalid path error.</p>
  
  <p>My request body is as follows:</p>
  
  <pre><code>{
  "configuration": {
  "load": {
  "sourceUris": [
  "gs://onianalytics/PersData.csv"
  ],
  "schema": {
  "fields": [
  {
  "name": "Name",
  "type": "STRING"
  },
  {
  "name": "Age",
  "type": "INTEGER"
  }
  ]
  },
  "destinationTable": {
  "datasetId": "Test_Dataset",
  "projectId": "lithe-anvil-404",
  "tableId": "tb_test_Pers"
  }
  }
  },
  "jobReference": {
  "jobId": "10",
  "projectId": "lithe-anvil-404"
  }
  }
  </code></pre>
  
  <p>For the sourceuri parameter, I am passing "gs://onianalytics/PersData.csv", where onianalytics is my bucket name and PersData.csv is my csv file (from which I want to upload data into google bigquery).</p>
  
  <p>I am getting below response:</p>
  
  <pre><code>"status": {
  "state": "DONE",
  "errorResult": {
  "reason": "invalid",
  "message": "Invalid path: gs://onianalytics/PersData.csv"
  },
  "errors": [
  {
  "reason": "invalid",
  "message": "Invalid path: gs://onianalytics/PersData.csv"
  }
  ]
  },
  "statistics": {
  "creationTime": "1387276603674",
  "startTime": "1387276603751",
  "endTime": "1387276603751"
  }
  }
  </code></pre>
  
  <p>My bucket is under the same projectid which has the BigQuery service activated. Also, I have Google Cloud Storage enabled under APIs and Auth. Following scopes are added while authenticating:</p>
  
  <p>googleapis.com/auth/bigquery, googleapis.com/auth/cloud-platform, googleapis.com/auth/devstorage.full_control,googleapis.com/auth/devstorage.read_only,googleapis.com/auth/devstorage.read_write</p>
  
  <p>I am inserting this job by "Try it!" link which is available on       developers.google.com/bigquery/docs/reference/v2/jobs/insert.</p>
  
  <p>In fact I am able to create buckets and objects in goggle cloud storage through APIs. But when i try to insert job from the uploaded object (which is a csv file), i got "Invalid Path" error. Can anyone please help me to identify why this error is occurring?</p>