Question: ```
import java.util.*;

public class Commission {

public static void main(String[] args) {
    Scanner input = new Scanner(System.in);
    System.out.print("Enter sales amount separated by space:");
    double[] saleAmounts = Inputs(input);
}

```

*Below is where my function scans numbers, but I need it to scan an x amount of values entered 'at the same time' to set the array length. Also, I need it so the user only enters in values once* 

(i have the length at 5 for a logic test) 

```
private static double[] Inputs(Scanner sc) {   
    double[] sales = new double[5];

    for (int i = 0; i < sales.length; i++){
        sales[i] = sc.nextDouble();
    }
    return sales;
}

```

Answer: 
Thanks to Sergey Nosov on the MS forum:

> 
> In the Function App, go to the "Deployment Center" blade, and click on
> the "Disconnect" button on top.
> 
> 
> After that re-run the release pipeline.
> 
> 
> 

Worked for me....

<https://learn.microsoft.com/en-us/answers/questions/382358/when-deploy-functionapp-to-slot-gt-error-package-d.html>
Check that there is a variable 'WEBSITE\_WEBDEPLOY\_USE\_SCM' set in Application settings of Azure App Service.

If it does not exist add it. Make sure that it is set to true.

After that restart the App Service. Wait 20 seconds, then redeploy your application.